package com.hangjiang.gulidear.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Problemsolution entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "problemsolution", catalog = "sqm")
public class ProblemSolution extends BaseEntity {

	// Fields

	private String psolutionId;
	private String problemTitle;
	private Integer problemId;
	private String psolutionDescribe;
	private String attachPath;
	private Timestamp submitTime;

	// Constructors

	/** default constructor */
	public ProblemSolution() {
	}

	/** full constructor */
	public ProblemSolution(String problemTitle, Integer problemId,
			String psolutionDescribe, String attachPath, Timestamp submitTime) {
		this.problemTitle = problemTitle;
		this.problemId = problemId;
		this.psolutionDescribe = psolutionDescribe;
		this.attachPath = attachPath;
		this.submitTime = submitTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "PSolutionId", unique = true, nullable = false, length = 32)
	public String getPsolutionId() {
		return this.psolutionId;
	}

	public void setPsolutionId(String psolutionId) {
		this.psolutionId = psolutionId;
	}

	@Column(name = "problemTitle", length = 30)
	public String getProblemTitle() {
		return this.problemTitle;
	}

	public void setProblemTitle(String problemTitle) {
		this.problemTitle = problemTitle;
	}

	@Column(name = "ProblemId")
	public Integer getProblemId() {
		return this.problemId;
	}

	public void setProblemId(Integer problemId) {
		this.problemId = problemId;
	}

	@Column(name = "pSolutionDescribe", length = 200)
	public String getPsolutionDescribe() {
		return this.psolutionDescribe;
	}

	public void setPsolutionDescribe(String psolutionDescribe) {
		this.psolutionDescribe = psolutionDescribe;
	}

	@Column(name = " attachPath")
	public String getAttachPath() {
		return this.attachPath;
	}

	public void setAttachPath(String attachPath) {
		this.attachPath = attachPath;
	}

	@Column(name = "submitTime", length = 0)
	public Timestamp getSubmitTime() {
		return this.submitTime;
	}

	public void setSubmitTime(Timestamp submitTime) {
		this.submitTime = submitTime;
	}

}